﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WFL.Data
{
    [AttributeUsage(AttributeTargets.Property
        , AllowMultiple = false
        , Inherited = true)]
    public class PrimaryKeyAttribute : DefinitionAttribute
    {
        public bool Automatic
        {
            get;
            private set;
        }

        public PrimaryKeyAttribute(bool automatic)
        {
            Automatic = automatic;
        }

        public PrimaryKeyAttribute()
            : this(true)
        { 
        
        }
    }
}
